public class ThreadSynchronized5 {
    public static void main(String[] args) {
        synchronized (ThreadSynchronized5.class){
            for (int i = 0; i <10 ; i++) {
                System.out.println(i);
            }
        }
    }
}
